#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys, traceback, Ice
Ice.loadSlice('EPhoneBook.ice', ['-I' '/usr/share/slice'])
import EPhoneBook

class Client (Ice.Application):
    def run (self, argv):
        self.shutdownOnInterrupt()
        basePrx = self.communicator().stringToProxy('david:default -p 10000')
        phonePrx = EPhoneBook.PhoneEntryPrx.checkedCast(basePrx)
        print phonePrx.getDetails()
        self.communicator().waitForShutdown()
        return 0

Client().main(sys.argv)
